package com.lelefly.base.po;

// default package

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * LeleflyCompanyInsuranceId entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "lelefly_company_insurance", catalog = "lelefly")
public class LeleflyCompanyInsurance implements java.io.Serializable {

	// Fields
	private Integer id;
	private String insuranceNumber;
	private String companyname;
	private String socialCreditCode;
	private String username;
	private String phonenumber;
	private String idno;
	private String email;
	private String beginTime;
	private String endTime;
	private String flyerName;
	private String flyerIdNo;
	private String addDate;
	private int insuranceState;
	private String planeId;
	private String planeName;

	// Constructors

	/** default constructor */
	public LeleflyCompanyInsurance() {
	}

	/** minimal constructor */
	public LeleflyCompanyInsurance(String companyname, String socialCreditCode,
			String username, String phonenumber, String idno, String flyerName,
			String flyerIdNo) {
		this.companyname = companyname;
		this.socialCreditCode = socialCreditCode;
		this.username = username;
		this.phonenumber = phonenumber;
		this.idno = idno;
		this.flyerName = flyerName;
		this.flyerIdNo = flyerIdNo;
	}

	/** full constructor */
	public LeleflyCompanyInsurance(String companyname, String socialCreditCode,
			String username, String phonenumber, String idno, String email,
			String beginTime, String endTime, String flyerName,
			String flyerIdNo, String addDate, int insuranceState,
			String insuranceNumber,String planeId,String planeName) {
		this.companyname = companyname;
		this.socialCreditCode = socialCreditCode;
		this.username = username;
		this.phonenumber = phonenumber;
		this.idno = idno;
		this.email = email;
		this.beginTime = beginTime;
		this.endTime = endTime;
		this.flyerName = flyerName;
		this.flyerIdNo = flyerIdNo;
		this.addDate = addDate;
		this.insuranceState = insuranceState;
		this.insuranceNumber = insuranceNumber;
		this.planeId = planeId;
		this.planeName = planeName;
	}

	// Property accessors

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "companyname", nullable = false, length = 65535)
	public String getCompanyname() {
		return this.companyname;
	}

	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}

	@Column(name = "social_credit_code", nullable = false, length = 100)
	public String getSocialCreditCode() {
		return this.socialCreditCode;
	}

	public void setSocialCreditCode(String socialCreditCode) {
		this.socialCreditCode = socialCreditCode;
	}

	@Column(name = "username", nullable = false, length = 20)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "phonenumber", nullable = false, length = 20)
	public String getPhonenumber() {
		return this.phonenumber;
	}

	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}

	@Column(name = "idno", nullable = false, length = 20)
	public String getIdno() {
		return this.idno;
	}

	public void setIdno(String idno) {
		this.idno = idno;
	}

	@Column(name = "email", length = 150)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "begin_time", length = 30)
	public String getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	@Column(name = "end_time", length = 30)
	public String getEndTime() {
		return this.endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	@Column(name = "flyer_name", nullable = false, length = 30)
	public String getFlyerName() {
		return this.flyerName;
	}

	public void setFlyerName(String flyerName) {
		this.flyerName = flyerName;
	}

	@Column(name = "flyer_id_no", nullable = false, length = 20)
	public String getFlyerIdNo() {
		return this.flyerIdNo;
	}

	public void setFlyerIdNo(String flyerIdNo) {
		this.flyerIdNo = flyerIdNo;
	}

	@Column(name = "add_date", length = 30)
	public String getAddDate() {
		return addDate;
	}

	public void setAddDate(String addDate) {
		this.addDate = addDate;
	}

	@Column(name = "insurance_state", length = 1)
	public int getInsuranceState() {
		return insuranceState;
	}

	public void setInsuranceState(int insuranceState) {
		this.insuranceState = insuranceState;
	}
	
	@Column(name="insurance_number",nullable=false,length=40)
	public String getInsuranceNumber() {
		return insuranceNumber;
	}

	public void setInsuranceNumber(String insuranceNumber) {
		this.insuranceNumber = insuranceNumber;
	}
	
	@Column(name="plane_id",nullable=false,length=40)
	public String getPlaneId() {
		return planeId;
	}

	public void setPlaneId(String planeId) {
		this.planeId = planeId;
	}

	@Column(name="plane_name",nullable=true,length=100)
	public String getPlaneName() {
		return planeName;
	}

	public void setPlaneName(String planeName) {
		this.planeName = planeName;
	}
}